package com.kuaiyiwang.springcloud.alibaba.service.impl;

import com.kuaiyiwang.springcloud.alibaba.service.PaymentService;
import com.kuaiyiwang.springcloud.entities.CommonResult;
import com.kuaiyiwang.springcloud.entities.Payment;
import org.springframework.stereotype.Service;

@Service
public class PaymentFallbackServiceImpl implements PaymentService {
    @Override
    public CommonResult<Payment> paymentSQL(Long id) {
        return new CommonResult<>(444,"服务降级返回，--PaymentFallbackServiceImpl",new Payment(id,"errorSerial"));
    }
}
